package cn.example.service.impl;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class TestServiceImpl implements ApplicationContextAware {

    public TestServiceImpl() {
        System.out.println("TestServiceImpl 构造函数...");
    }


    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        System.out.println(applicationContext);
    }
}
